import request, {buildQueryString} from "@/utils/request";
export function uploadFile(files: File[]) {
    const formData = new FormData()
    files.forEach(file=>{
        formData.append("file",file)
    })
    return request.post("/file",formData)
}
export function getUserInfo() {
    return request.get("/user/userInfo")
}
export function getUserRouters() {
    return request.get("/menu/getRouters")
}
export function getLoginLogList(data: any) {
    return request.get(`loginLog/list${buildQueryString(data)}`)
}
